package dao;

import pojo.CheckInRecord;

import java.sql.Connection;
import java.util.ArrayList;

/**
 * Dao 层接口
 */
public interface CheckInRecordDao {
    //查询所有入住信息
    public abstract ArrayList<CheckInRecord> findAll();

    //根据id获取入住对象
    public abstract CheckInRecord findById(Integer stuId);

    //新增入住信息
    public abstract int insert(Connection connection,CheckInRecord checkInRecord);

    //修改入住信息
    public abstract int update(CheckInRecord checkInRecord);

    //删除入住信息
    public abstract int delete(CheckInRecord checkInRecord);
}
